import request from 'utils/request'

export const postData = (data) => {
  return request({
    url: '/navigator',
    method: 'post',
    data
  })
}

export const getEditData = (id) => {
  return request({
    url: `/navigator/byId?id=${id}`,
    method: 'get'
  })
}

export const getTabelList = (data) => {
  return request({
    url: '/navigator',
    method: 'get',
    params: data
  })
}

export const postStatus = (data, method) => {
  return request({
    url: '/navigator',
    method,
    params: data
  })
}

export const upDateRow = (data) => {
  return request({
    url: '/navigator',
    method: 'post',
    data
  })
}
